#ifndef CAPTURER_HPP
#define CAPTURER_HPP
#include <opencv2/opencv.hpp>
#include <vector>
#include <sys/time.h>
#include <thread>
#include <vector>
class CameraCap{
private:
    std::string url;
    cv::VideoCapture cap;
    void connect();

public:
    CameraCap(std::string user, std::string passwd, std::string ip);  
    ~CameraCap();   
    bool getOneFrame(cv::Mat& frame);
};

#endif //CAPTURER_HPP